/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2021 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
.view-container .calendar-view {
  display: flex;
  flex-direction: column;
}

.view-container .calendar-view > div:last-child {
  display: flex;
  padding: 4px;
  background-color: #fff;
  max-height: 100%;
  flex: 1;
}

.calendar-main {
  flex: 1;
  height: 100%;
}

.calendar-side {
  overflow: hidden;
  margin-left: 4px;
  max-width: 228px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-side .ui-datepicker {
  box-shadow: none;
  border-radius: 0;
}

.calendar-legend {
  padding-left: 4px;
  margin-top: 8px;
  margin-bottom: 0;
  overflow: auto;
  flex: 1;
}

.calendar-legend label {
  line-height: 20px;
}

.calendar-view .record-pager > span {
  font-weight: 600;
  padding: 10px 4px 0;
}

.calendar-view .fc-month-view .calendar-event-day * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-view .fc-event .fc-bg {
  opacity: .1;
}

.calendar-bubble-content {
  overflow: hidden;
  width: 100%;
}

.calendar-bubble-content hr {
  margin: 8px 0;
}

.calendar-view .fc-widget-header {
  font-weight: 600;
}

.portlet-calendar {
    position: relative;
}

.portlet-calendar [ui-view-calendar] {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  display: flex;
}
